package cn.crc.pjblog.components.core;

import org.apache.tapestry.MarkupWriter;
import org.apache.tapestry.corelib.base.AbstractTextField;

/**
 * @author doublel
 * 自定义的隐藏input 
 * */
public final class HiddenTextField extends AbstractTextField{

	
	
	/* (non-Javadoc)
	 * @see org.apache.tapestry.corelib.base.AbstractTextField#writeFieldTag(org.apache.tapestry.MarkupWriter, java.lang.String)
	 */
	@Override
	protected void writeFieldTag(MarkupWriter writer, String value) {
		// TODO Auto-generated method stub
		writer.element("input", "type","hidden",
								"name",this.getElementName(),
								"id",this.getClientId(),
								"value",value);
		
	}

	public void afterRender(MarkupWriter writer){
		
		writer.end();
	}
	
}
